package cn.layfolk.daimao.web.feign;

import cn.layfolk.daimao.vo.TGoods;
import cn.layfolk.daimao.vo.respvo.ResponseVo;
import cn.layfolk.daimao.web.feign.hystrix.GoodsFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

@FeignClient(name = "goods-server",fallback = GoodsFeignHystrix.class)
public interface GoodsFeignApi {

    /**
     * 根据商品id获取商品信息
     */
    @RequestMapping("/queryByIdList")
    ResponseVo<List<TGoods>> queryByIdList(@RequestParam("ids") Set<Long> ids);
}
